import urllib.request

req = urllib.request.urlopen("https://www.okcoin.cn/api/v1/kline.do?symbol=btc_cny&type=12hour")
a = str(req.read(),encoding="utf-8")
print(a)